﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Drive.LiveExcelHost
{
    public static class StreamExtension
    {
        public static void Write(this Stream stream, string val)
        {
            stream.Write(Encoding.UTF8.GetBytes(val));
        }

        public static void WriteLine(this Stream stream, string val)
        {
            stream.Write(val + "\r\n");
        }

        public static void WriteLine(this Stream stream)
        {
            stream.Write("\r\n");
        }
    }
}
